package water_qanxun_api.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("t_user")
public class UserData {
    // id
    @TableId(value = "id", type = IdType.AUTO)  // 设置id策略为自增
    private Integer id;
    // 用户名
    private String name;
    // 密码
    private String password;
    // 邮箱
    private String account;
    
    public UserData(String username, String password, String account) {
        this.name = username;
        this.password = password;
        this.account = account;
    }
    
    public UserData() {
    }
    
    public UserData(String account, String password) {
        this.account = account;
        this.password = password;
    }
}
